package com.zkthink.ceres.order.dao;

import com.zkthink.base.mapper.SuperMapper;
import com.zkthink.ceres.order.entity.OrderProduct;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口
 *
 * </p>
 *
 * @author JustArgo
 * @date 2020-05-10
 */
@Repository
public interface OrderProductMapper extends SuperMapper<OrderProduct> {

  List<Map<String,Object>> countProductSale(@Param("param") Map<String,Object> param);

  /**
   * 查询该订单下有几个商品
   * @param orderCode
   * @return
   */
  Integer queryProductCount(@Param("orderCode")String orderCode);
}
